import React, {Component} from 'react';
import AddUpdate from "./add-update";
import Home from "./home";
import Detail from "./detail";
import './index.less'
import {Redirect, Route, Switch} from "react-router-dom";
class Product extends Component {
    render() {
        return (
            <Switch>
                <Route path={'/product'} component={Home} exact></Route>
                <Route path={'/product/addupdate'} component={AddUpdate}></Route>
                <Route path={'/product/detail'} component={Detail}></Route>
                <Redirect to={'/product'}></Redirect>
            </Switch>
        );
    }
}

export default Product;